package com.guanghua.brick.biz.content;

import java.sql.Connection;
import java.util.List;
import java.util.Map;

import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.guanghua.brick.db.SQLUtil;

public class SpringContentBizBean implements IContentBiz {
	
	@Transactional(readOnly = true, propagation = Propagation.NEVER)
	public List<Map<String, String>> listContent(String sql, Map<String, Object> filter) throws Exception {
		//获取连接
		Connection conn = SQLUtil.openConnection();
		//查询
		List<Map<String, String>> list = SQLUtil.query(conn, sql, filter);
		//返回
		return list;
	}

}
